package com.nosnow.gmall.usermanage.controller;

import com.nosnow.gmall.bean.UserInfo;
import com.nosnow.gmall.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @类名称:UserController
 * @类描述：用户信息Controller
 * @author: bingHeng
 * @Date
 * @Version: 1.0
*/
@RestController
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @RequestMapping("userList")
    public ResponseEntity<List<UserInfo>> userList() {
        List<UserInfo> userInfoListAll = userInfoService.getUserInfoListAll();
        return ResponseEntity.ok(userInfoListAll);
    }
}
